How to usethe <em> Tag in HTML
The <em> tag is used to emphasize the text, typically rendering it in italic form by default. It conveys importance or stress semantically and is widely employed for emphasis within paragraphs or sentences.
<!DOCTYPE html>
<html>
<head>
<title>Italic Text</title>
</head>
<body>
<p>Welcome to <em>w3wiki</em></p>
</body>
</html>
Output:
Welcome to w3wiki
How to Make Text Italic in HTML?
The italic text in HTML can be done using the <em> (emphasis) tag or the <i> (italic) tag. Both tags are used to indicate that text should be displayed in italic form. Additionally, you can also use CSS style to text and make it italic. In this article, we will cover all approaches with examples to make text Italic.
Table of Content
- Using the <em> Tag
- Using the <i> Tag
- Using CSS Style
Contact Us